import { createApp } from 'vue'
import DevUI from 'vue-devui';
import 'vue-devui/style.css';
import '@devui-design/icons/icomoon/devui-icon.css';
import { ThemeServiceInit, infinityTheme, galaxyTheme } from 'devui-theme';
import './style.scss'
import App from './App.vue'
// import MateChat from '../src/components/MateChat/index'
import * as Vue from 'vue'
import * as echarts from 'echarts'
import MateChat from '@matechat/core';

window.Vue = Vue
window.echarts = echarts



// 默认使用无限主题
export const themeServiceInstance = ThemeServiceInit({
  infinityTheme, galaxyTheme
}, 'infinityTheme');

if (localStorage.getItem('theme') === 'galaxy-theme') {
  themeServiceInstance.applyTheme(galaxyTheme);
}


createApp(App).use(DevUI).use(MateChat).mount('#app');
